
// GetSpamDigestDlg.h : header file
//

#pragma once
#include "..//NilKey.h"

// CGetSpamDigestDlg dialog
typedef vector<CNilKey> Group;
class CGetSpamDigestDlg : public CDialog
{
// Construction
public:
	CGetSpamDigestDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	enum { IDD = IDD_GETSPAMDIGEST_DIALOG };

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support

	afx_msg void OnBnClickedButtonAnalysis();
	afx_msg void OnBnClickedButtonGetGroupInfo();
	afx_msg void OnBnClickedButtonGetDigest();
// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	DECLARE_MESSAGE_MAP()
	static bool GetNilsimsaDigest(const string& strSource, CNilKey& cDest);
	CString m_strGroupInfo;
	vector<Group> m_cGroupList;
	CCalculator m_cGroupStater;
	void PraseSpamGroup(const CString & strPath , Group& cGroup);
public:
	afx_msg void OnBnClickedButtonDrawCdf();
	int m_nSimpleNumber;
};
